﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DNA
{
    public partial class value_AGTC : Form
    {
        public value_AGTC()
        {
            InitializeComponent();
        }

        private void no_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ok_Click(object sender, EventArgs e)
        {
            setvalue();
            this.Close();
        }

        public void setvalue()
        {
            DNA thedna = this.Owner as DNA;
            thedna.A = (char)A_val.Value;
            thedna.G = (char)G_val.Value;
            thedna.T = (char)T_val.Value;
            thedna.C = (char)C_val.Value;
            thedna.D = (char)D_val.Value;
            thedna.I = (char)I_val.Value;
            thedna.set_val_nukl = true;
        }
    }
}
